#ifndef	__OLED_H
#define	__OLED_H


#define OLED_CMD 0
#define OLED_DATA 1


#define oled_u8 unsigned char
#define oled_u32 unsigned int






void Initial_M096128x64_ssd1306(void);
void Delay_50ms(unsigned int Del_50ms);
void Delay_1ms(unsigned int Del_1ms);
void Write_IIC_Command(unsigned char IIC_Command);
void Write_IIC_Data(unsigned char IIC_Data);
void OLED_WR_Byte(unsigned char dat,unsigned char cmd);

void OLED_Init();
void OLED_Display_On(void);
void OLED_Display_Off(void);
void OLED_Refresh_Gram(void);	
void OLED_Clear(void);
void OLED_DrawPoint(oled_u8 x,oled_u8 y,oled_u8 t);
void OLED_Fill(oled_u8 x1,oled_u8 y1,oled_u8 x2,oled_u8 y2,oled_u8 dot);
void OLED_ShowChar(oled_u8 x,oled_u8 y,oled_u8 chr,oled_u8 size,oled_u8 mode);
void OLED_ShowNum(oled_u8 x,oled_u8 y,oled_u32 num,oled_u8 len,oled_u8 size);
void OLED_ShowString(oled_u8 x,oled_u8 y,const oled_u8 *p,oled_u8 size);
#endif
